#include <stdio.h>
struct Student{
	char name[10];
	int num;
	char sex;
}stu = {"fan", 2009, 'm'};
int main()
{
	FILE *fp;
	fp = fopen("data", "wb");
	fwrite(&stu, sizeof(stu), 1, fp);
	fclose(fp);
	return 0;
}

